package com.example.demo.springboot.dao;

import com.example.demo.springboot.entity.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class UserDao {

    public List<User> query() {
        List<User> users = new ArrayList<>();
        for (int i =0;i<10;i++){
            User user = new User();
            user.setUsername("username"+i);
            user.setPassowrd("password"+i);
            user.setUuid(String.valueOf(i) + Math.random());
            users.add(user);
        }
        return users;
    }
}
